/*
** get_next_line.h for gnl in /home/nadali_t//local/Projets/CprgElem/bsq/get_next_line
** 
** Made by thomas nadalie
** Login   <nadali_t@epitech.net>
** 
** Started on  Mon Dec  5 15:28:20 2011 thomas nadalie
** Last update Mon Dec  5 15:28:59 2011 thomas nadalie
*/

#ifndef __GET_NEXT_LINE_
#define	__GET_NEXT_LINE_

#define BUFF_SIZE 4096
#define READ_SIZE 4096

typedef struct	s_get
{
  int		nb_read;
  int		count;
  char		buff[BUFF_SIZE];
}		t_get;

typedef struct	s_var
{
  char		*out;
  int		cpt;
}		t_var;

char		*get_next_line(const int fd);
void		*xmalloc(int n);
char		*to_return(t_get *t, t_var *v);

#endif
